<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="vue.js"></script>
    <script src="my-vuex.js"></script>
    <script>
        //创建一个 Vuex仓库
        const store = new Vuex.Store({
            state:{count:0},//定义仓库中的初始状态
           /*  mutations:{//定义修改状态的操作
                add(state){
                    state.count++;
                }
            } */
        });
        console.log(store.state.count)
    </script>
</body>
</html>